package gmusic.bo;

import java.sql.ResultSet;
import java.sql.SQLException;

public class TypeBean {

	public static final String idColumnName = "ty_id";
	private int id;

	public static final String nomColumnName = "ty_nom";
	private String nom;

	public static final String displayForDirectoryColumnName = "display_for_directory";
	private String displayForDirectory;

	public TypeBean() {
	}

	public TypeBean(ResultSet rs) throws SQLException {
		setId(rs.getInt(idColumnName));
		setNom(rs.getString(nomColumnName));
		setDisplayForDirectory(rs.getString(displayForDirectoryColumnName));
	}

	public int getId() {
		return id;
	}

	public void setId(int i) {
		id = i;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String n) {
		nom = n;
	}

	public String getDisplayForDirectory() {
		return displayForDirectory;
	}

	public void setDisplayForDirectory(String displayForDirectory) {
		this.displayForDirectory = displayForDirectory;
	}
	
	public String toString() {
		return "[" + id + "] " + nom;
	}
}
